package com.itheima.practise;

import java.util.Random;

public class Test02 {
    public static void main(String[] args) {
        Random r = new Random();
        int[] arr = {3,1,2,4,0,0,0,5};
        int i = r.nextInt(9);
        if (arr[i] == 0){
            System.out.println("再接再厉");
        }else {
            System.out.println("恭喜小明获得"+arr[i]+"等奖");
        }
    }
}
